package com.ss.android.article.browser.lockscreen;

import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import com.bytedance.common.utility.UIUtils;
import com.ss.android.article.base.app.AppData;
import com.ss.android.article.browser.lockscreen.ui.c;
import com.ss.android.browser.base.wrapper.a.BrowserSharedPreferencesWrapper;

final class d implements Runnable {
    d() {

    }

    public final void run() {
        Activity v0 = AppData.getInstance().u();
        if (v0 != null && !v0.isFinishing()) {
            try {
                View v1 = LayoutInflater.from(((Context) v0)).inflate(com.ss.android.article.browser.R.layout.ck, null);
                View v2 = v1.findViewById(com.ss.android.article.browser.R.id.root);
                View v3 = v1.findViewById(com.ss.android.article.browser.R.id.j6);
                com.ss.android.newmedia.message.dialog.a.b v4 = new com.ss.android.newmedia.message.dialog.a.b(v0);
                v4.a = 10000;
                com.ss.android.newmedia.message.dialog.a v5 = new com.ss.android.newmedia.message.dialog.a(v0, v1, v4);
                int v4_1 = ((int) UIUtils.dp2px(v0, 6f));
                UIUtils.setLayoutMargins(v2, v4_1, -3, v4_1, -3);
                v2.setOnClickListener(new com.ss.android.article.browser.lockscreen.ui.a(v1, v5, v0));
                v3.setOnClickListener(new com.ss.android.article.browser.lockscreen.ui.b(v5));
                v5.a = new c(v1);
                v5.a();
                BrowserSharedPreferencesWrapper.putTrueValue("lockscreen_tip");
            } catch (Exception v0_1) {
            }
        }
    }
}

